(Man-next-section): Don't consider the last line of the page as being
authorMichaël Cadilhac <michael.cadilhac@lrde.org>
Thu, 10 May 2007 11:54:02 +0000 (11:54 +0000)
committerMichaël Cadilhac <michael.cadilhac@lrde.org>
Thu, 10 May 2007 11:54:02 +0000 (11:54 +0000)
part of any section.

lisp/man.el

index 0484c032e34dd644bb545d458e412c4128cbaa3b..e74f9734e516d7847616f75c7f6a20360e48806f 100644 (file)
@@ -1296,7 +1296,9 @@ The following key bindings are currently in effect in the buffer:
        (forward-line 1))
     (if (re-search-forward Man-heading-regexp (point-max) t n)
        (beginning-of-line)
-      (goto-char (point-max)))))
+      (goto-char (point-max))
+      ;; The last line doesn't belong to any section.
+      (forward-line -1))))
 
 (defun Man-previous-section (n)
   "Move point to Nth previous section (default 1)."